<?php

namespace Modules\Manager\Http\Controllers;

use App\Helpers\ResponseData;
use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Modules\Car\Entities\CarOrder;
use Modules\Manager\Entities\Finance;

class FinacneController extends Controller
{
    use ResponseData;
    public function list(Request $request){
        $size = $request->input('size',10);
        $data = Finance::query()->paginate($size);
        return $this->success($data);
    }
    public function edit(Request $request){
        $data = CarOrder::query()->where('order_sn',$request->order_sn)->first();
        return $this->success($data);
    }
}
